package com.sxx.mall.order.config;

import com.sxx.mall.order.interceptor.AuthIntercepter;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Auther: sunxx
 * @Date: 2024/9/1 - 09 - 01 - 3:32
 * @Description: com.sxx.mallcart.config
 * @version: 1.0
 */
@Configuration
public class MyWebInterceptorConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AuthIntercepter()).addPathPatterns("/**");
    }
}
